package net.wanho.cloudconsumer7001.client;

import net.wanho.entity.User;
import net.wanho.vo.AjaxResult;
import org.springframework.stereotype.Component;

import java.util.HashMap;
@Component
public class UserClientFallback implements UserClient{
    @Override
    public String test() {
        return "请求失败";
    }

    @Override
    public AjaxResult findByName(String name) {
        return AjaxResult.error("查询用户失败");
    }

    @Override
    public AjaxResult deleteById(Integer id) {
        return AjaxResult.error("删除用户失败");
    }

    @Override
    public AjaxResult addUser(User user) {
        return AjaxResult.error("添加用户失败");
    }

    @Override
    public AjaxResult updateUser(User user) {
        return AjaxResult.error("修改用户失败");
    }

    @Override
    public AjaxResult queryUser(HashMap<String, Object> map) {
        return AjaxResult.error("查询用户失败");
    }
}
